




<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
    <!-- Bootstrap core CSS -->
    <link href="/public/css/bootstrap.min.css" rel="stylesheet">
    <!-- Optional Bootstrap Theme -->
    <link href="data:text/css;charset=utf-8," data-href="https://v3.bootcss.com/dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">
    <title>{{.Title}} - Superstar database</title>

</head>

<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">球星库</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/admin/">全部球星 <span class="sr-only">(current)</span></a></li>
                <li><a href="/admin/edit">添加球星</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">国籍筛选 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="/admin/search?country=中国">中国</a></li>
                        <li><a href="/admin/search?country=巴西">巴西</a></li>
                        <li><a href="/admin/search?country=阿根廷">阿根廷</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="/admin/search?country=西班牙">西班牙</a></li>
                        <li><a href="/admin/search?country=葡萄牙">葡萄牙</a></li>
                        <li><a href="/admin/search?country=英国">英国</a></li>
                        <li><a href="/admin/search?country=德国">德国</a></li>
                        <li><a href="/admin/search?country=法国">法国</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="/admin/search?country=美国">美国</a></li>
                        <li><a href="/admin/search?country=意大利">意大利</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="https://soccerStar/" target="_blank">源代码</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">更多 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
    <div>
        <!-- Render the current template here -->
        {{/*{{ yield }}*/}}
        <div class="container-fluid">

            <div class="panel panel-default" style="margin-bottom: 0px;">
                <div class="panel-heading" style="margin-bottom:12px;">
                    <a href="/admin/">返回</a>
                    {{if gt .info.Id 0}}编辑{{else}}添加{{end}}球员信息
                </div>
                <form class="form-horizontal" action="/admin/save" method="post">
                    <div class="form-group" style="height:30px;">
                        <label for="input_name_zh" class="col-sm-2 control-label">中文名</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input_name_zh" name="name_zh" value="{{.info.NameZh}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_name_en" class="col-sm-2 control-label">英文名</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input_name_en" name="name_en" value="{{.info.NameEn}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_avatar" class="col-sm-2 control-label">头像</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input_avatar" name="avatar" value="{{.info.Avatar}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_birthday" class="col-sm-2 control-label">出生日期</label>
                        <div class="col-sm-9">
                            <input placeholder="格式 2022-01-01" type="text" class="form-control" id="input_birthday" name="birthday" value="{{.info.Birthday}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_height" class="col-sm-2 control-label">身高</label>
                        <div class="col-sm-9">
                            <input placeholder="单位cm" type="text" class="form-control" id="input_height" name="height" value="{{.info.Height}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_weight" class="col-sm-2 control-label">体重</label>
                        <div class="col-sm-9">
                            <input placeholder="单位g" type="text" class="form-control" id="input_weight" name="weight" value="{{.info.Weight}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_club" class="col-sm-2 control-label">俱乐部</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input_club" name="club" value="{{.info.Club}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_jersy" class="col-sm-2 control-label">球衣号码以及主打位置</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input_jersy" name="jersy" value="{{.info.Jersy}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_country" class="col-sm-2 control-label">国籍</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input_country" name="country" value="{{.info.Country}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_birthaddress" class="col-sm-2 control-label">出生地</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input_birthaddress" name="birthaddress" value="{{.info.Birthaddress}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_feature" class="col-sm-2 control-label">个人特点</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input_feature" name="feature" value="{{.info.Feature}}">
                        </div>
                    </div>
                    <div class="form-group" style="height:30px;">
                        <label for="input_moreinfo" class="col-sm-2 control-label">更多介绍</label>
                        <div class="col-sm-9">
                            <textarea style="width: 100%" id="input_moreinfo" name="moreinfo">{{.info.Moreinfo}}</textarea>
                        </div>
                    </div>

            </div>
            <div class="form-group" style="height:30px;">
                <div class="col-sm-offset-2 col-sm-9">
                    <button type="submit" class="btn btn-default">保存</button>
                    <input type="reset" class="btn btn-default" value="重置" />
                    <input type="hidden" class="form-control" id="input_id" name="id" value="{{.info.Id}}">
                </div>
            </div>
            </form>
        </div>

    </div>
        <hr />
        <footer style="text-align: center;">
            <p>&copy; 2022 - yihaibin</p>
        </footer>
    </div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/public/js/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/public/js/jquery.min.js"><\/script>')</script>
<script src="/public/js/bootstrap.min.js"></script>
</body>
</html>
